<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import jq -->
  <script src="./assets/js/jquery-3.4.1.js"></script>
</head>
<body>
</body>
  <script>
  $(function () {
		alert("aaa");
        $.ajax({
			url: "https://httpbin.org/get",
			type: 'GET',
			success: function(res){
				console.log(res);
			},
			error: function(xhr){
				alert("log: " + xhr.status + " " + xhr.statusText);
			} 
        });
		alert("bbb");
		$.ajax({
			url: "https://httpbin.org/post",
			type: 'POST',
			data: {"custname":'a'},
			success: function(res){
				console.log(res);
			},
			error: function(xhr){
				alert("log: " + xhr.status + " " + xhr.statusText);
			} 
        });
  });
   
  </script>
</html>
